package com.japstudy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.japstudy.dao.ITestPaperDao;
import com.japstudy.entity.TestPaper;
import com.japstudy.service.ITestPaperService;

@Service
public class TestPaperServiceImpl implements ITestPaperService{

	@Autowired
	private ITestPaperDao iTestPaperDao;
	
	@Override
	public int add(TestPaper testPaper) {
		return iTestPaperDao.add(testPaper);
	}

	@Override
	public List<TestPaper> selectAllByLoginUser(String userId) {
		return iTestPaperDao.selectAllByLoginUser(userId);
	}
	
}
